package pers.zh.parking.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import pers.zh.parking.po.ParkingLot;
import pers.zh.parking.po.ParkingLotExample;

@Mapper
public interface ParkingLotMapper {
    int countByExample(ParkingLotExample example);

    int deleteByExample(ParkingLotExample example);

    int deleteByPrimaryKey(Integer lotId);

    int insert(ParkingLot record);

    int insertSelective(ParkingLot record);

    List<ParkingLot> selectByExample(ParkingLotExample example);

    ParkingLot selectByPrimaryKey(Integer lotId);

    int updateByExampleSelective(@Param("record") ParkingLot record, @Param("example") ParkingLotExample example);

    int updateByExample(@Param("record") ParkingLot record, @Param("example") ParkingLotExample example);

    int updateByPrimaryKeySelective(ParkingLot record);

    int updateByPrimaryKey(ParkingLot record);

    int batchInsert(List<ParkingLot> lots);

    List<ParkingLot> selectLotsAround(Map<String,Object> map);

    int batchUpdateSpace(List<ParkingLot> list);

    List<ParkingLot> getAllLotIds();

    List<ParkingLot> selectAll();

}